package com.autcar.training.service;

import com.autcar.training.VO.OrderRequest;
import com.autcar.training.entity.Order;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.ListResourceBundle;

/**
 * @ProjectName: training
 * @Package: com.autcar.training.service
 * @ClassName: OrderService
 * @Author: YHHHH
 * @Description: 订单的CRUD
 * @Date: 2020/8/28 10:49
 * @Version: 1.0
 */
public interface OrderService {

    //删除订单
    int deleteOrder(Integer id);

    //修改订单
    int updateOrder(Order order);

    //增加一个订单
    int addOrder(OrderRequest orderRequest);

    //修改订单状态未评价
    int updateStatusFalse(Integer id);

    //修改订单状态已评价
    int updateStatusTrue(Integer id);

    //根据客户名称模糊查询
    List<Order> findByCustomerName(String customerName);



}
